
<div class="CenterHeaderBox RollingGoal">
    <div class="CenterBackBtn"><a href="javascript:history.go(-1)"><img src="__CDN__/map/images/return.png" alt="返回"/></a></div>
    <div class="CenterHeaderTitle">我的股权</div>
</div>

<div class="CenterMain">
    <div class="ParticipationTop gradualBg">
        <p class="p1">{$mentioning}</p>
        <p class="p2">股权</p>
    </div>
    <div class="BalanceList">
        <div class="title">股权明细</div>
        <div class="BalanceDetail">
            <ul id="ul">
            </ul>
        </div>

    </div>
</div>

<script>

    var page={$page};
    $(document).scroll(function() {
        if ($(document).scrollTop() + $(window).height() >= $(document).height()) {
            re_ajax();
        }
    })
    re_ajax(0);

    function re_ajax(){
        $.ajax({
            type:"GET",
            url:"{$http_url}/index/user/stock",
            dataType:"json",
            data:{
                page:page,

            },
            success:function(data){
                var html='';
                data.data.forEach(function (v) {
                    html+='<li class="am-cf">';
                    html+='<div class="textL am-fl">';
                    html+='  <p class="p1"><span></span> 会员ID:'+v.user_id+'</p> ';
                    html+='  <p class="p2">'+v.createtime+'</p>';
                    html+='</div>';
                    html+='<div class="textR dmColor am-fr">+'+v.money+'</div>';
                    html+='</li>'
                })
                page=data.page;
                $('#ul').append(html);
            },
            error:function(jqXHR){
                console.log("Error: "+jqXHR.status);
            }
        });
    }
</script>